#!/bin/sh

addgroup -S kodi 2>/dev/null
adduser -S -D -h /var/lib/kodi -s /sbin/nologin -G kodi kodi 2>/dev/null

for group in video audio input; do
	adduser kodi $group 2>/dev/null
done

exit 0
